package com.itheima.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
@Data
public class PageQueryObject {
    private Integer page = 1;
    private Integer pageSize = 10;
    private String name;
    private Integer gender;
//    传过来是字符串，但是我得解析成LocalDate对象
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

    private Integer degree;
    private Integer clazzId;
}
